<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>

<%@ Register Assembly="UsrControls" Namespace="UsrControls" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>SIG para toma de Decisiones</title>
    <link rel="stylesheet" href="Estilos.css" type="text/css">
</head>

<script language="javascript">window.onresize = function(){resizePopUp();}</script>
 <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
		</script>
		<script type="text/javascript">
		    _uacct = "UA-21344736-2";
		    urchinTracker();
		</script>
<body id="login">
    <form id="Form1" method="post" runat="server">
        <img src="Imagenes/sig-login.png" width="347" height="104" alt="SIG" />
        <table width="310" border="0" cellpadding="0" cellspacing="0" class="login">
            <tr>
                <td>
                    <img src="Imagenes/tab-consultas-on.gif" width="147" height="39" alt="Consultas SIG" /></td>
                <td>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" PostBackUrl="http://sig.mincultura.gov.co:8096/login.aspx"><img src="Imagenes/tab-admin-off.gif" width="163" height="39" alt="Administrador SIG" /></asp:LinkButton></td>
            </tr>
            <tr>
                <td colspan="2" class="fondologin">
                    <anthem:ValidationSummary ID="ValidationSummary1" runat="server" AutoUpdateAfterCallBack="True"
                        CssClass="notification note-error"></anthem:ValidationSummary>
                    <anthem:Label ID="lblMensaje" runat="server" AutoUpdateAfterCallBack="True" CssClass="notification note-error"
                        Visible="False"></anthem:Label>
                    <table width="255" border="0">
                        <tr>
                            <td>
                                Usuario:</td>
                            <td>
                                <anthem:TextBox ID="txtUsuario" runat="server" AutoUpdateAfterCallBack="True" CssClass="text"
                                    Width="120px" MaxLength="20" ToolTip="Usuario"></anthem:TextBox>
                                <asp:RequiredFieldValidator ID="reqUsuario" runat="server" Display="Dynamic" ControlToValidate="txtUsuario"
                                    ErrorMessage="Debe ingresar el campo Usuario">*</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                Clave:</td>
                            <td>
                                <anthem:TextBox ID="txtClave" runat="server" AutoUpdateAfterCallBack="True" CssClass="text"
                                    Width="120px" MaxLength="8" ToolTip="Clave" TextMode="Password"></anthem:TextBox><asp:RequiredFieldValidator
                                        ID="reqClave" runat="server" Display="Dynamic" ControlToValidate="txtClave" ErrorMessage="Debe ingresar el campo Clave">*</asp:RequiredFieldValidator></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                            <td>
                                <anthem:ImageButton ID="btnIngresar" runat="server" ImageUrl="Imagenes/bt-ingresar.gif"
                                    OnClick="btnIngresar_Click" Width="78px" Height="27px"></anthem:ImageButton></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="loginabajo">
                        <anthem:LinkButton ID="LinkButtonOlvidoClave" runat="server" CssClass="olvido" CausesValidation="False" OnClick="LinkButtonOlvidoClave_Click" >Olvido su contrasena</anthem:LinkButton>
                    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/Documentos/ManualUsuarioSig.pdf"
                        Target="_blank" CssClass="manual">Ver Manual de Usuario</asp:HyperLink></td>
            </tr>
        </table>
        <div class="footer">
            <p>
                Utilice el usuario: consulta y la clave: consulta</p>
            <img src="Imagenes/logo-mincultura-login.gif" width="105" height="96" alt="Ministerio de Cultura" /></div>
        <cc1:PopupPanel ID="PopupPanel1" runat="server" Height="267px" Width="599px">
            <anthem:Label ID="lblMensajeNuevo" runat="server" CssClass="notification note-info"
                AutoUpdateAfterCallBack="True" Visible="False" UpdateAfterCallBack="True"></anthem:Label>
            <anthem:ValidationSummary ID="ValidationSummary2" runat="server" CssClass="notification note-error">
            </anthem:ValidationSummary>
            <anthem:ImageButton ID="btnAceptar" OnClick="btnAceptar_Click" runat="server" ImageUrl="Imagenes/bt-cambiocontrasena.gif"
                AlternateText="Guardar" ValidationGroup="CambioContrasena"></anthem:ImageButton>
            <anthem:ImageButton ID="btnCancelar" OnClick="btnCancelar_Click" runat="server" ImageUrl="Imagenes/bt-regresar.gif"
                AlternateText="Salir" CausesValidation="False"></anthem:ImageButton>
            <div class="borde">
                <table class="content-box">
                    <tr>
                        <td class="campo">
                            Usuario:</td>
                        <td class="fila1">
                            <anthem:Label ID="lblNombre" runat="server"></anthem:Label></td>
                    </tr>
                    <tr>
                        <td class="campo">
                            Nueva Clave:</td>
                        <td class="fila1">
                            <anthem:TextBox ID="txtClaveNueva" runat="server" CssClass="box" Width="100px" ToolTip="Nueva Clave"
                                MaxLength="8" TextMode="Password"></anthem:TextBox>
                            <anthem:CompareValidator ID="cmpClave" runat="server" ErrorMessage="CompareValidator"
                                ControlToValidate="txtClaveNueva" Display="Dynamic" Enabled="False" ControlToCompare="txtConfirmarClave"
                                ValidationGroup="CambioContrasena">*</anthem:CompareValidator>
                            <anthem:RegularExpressionValidator ID="regClave" runat="server" ErrorMessage="RegularExpressionValidator"
                                ControlToValidate="txtClaveNueva" Display="Dynamic" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RegularExpressionValidator>
                            <anthem:RequiredFieldValidator ID="reqClaveNueva" runat="server" ErrorMessage="RequiredFieldValidator"
                                ControlToValidate="txtClaveNueva" Display="Dynamic" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td class="campo">
                            Confirmar Nueva Clave:</td>
                        <td class="fila1">
                            <anthem:TextBox ID="txtConfirmarClave" runat="server" CssClass="box" Width="100px"
                                ToolTip="Confirmar Nueva Clave" MaxLength="8" TextMode="Password" ValidationGroup="CambioContrasena"></anthem:TextBox>
                            <anthem:RegularExpressionValidator ID="regConfirmarClave" runat="server" ErrorMessage="RegularExpressionValidator"
                                ControlToValidate="txtConfirmarClave" Display="Dynamic" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RegularExpressionValidator>
                            <anthem:RequiredFieldValidator ID="reqConfirmarClave" runat="server" ErrorMessage="RequiredFieldValidator"
                                ControlToValidate="txtConfirmarClave" Display="Dynamic" Enabled="False" ValidationGroup="CambioContrasena">*</anthem:RequiredFieldValidator></td>
                    </tr>
                    </table>
            </div>
            <anthem:PlaceHolder ID="PlaceHolderScript" runat="server">
            </anthem:PlaceHolder>
        </cc1:PopupPanel>
        <br />
        <cc1:PopupPanel ID="PopupPanelCorreo" runat="server" Height="267px" Width="599px">
            <asp:ValidationSummary ID="ValidationSummary1Correo" runat="server" CssClass="notification note-error" />
            <anthem:Label ID="lblMensajeCorreo" runat="server" AutoUpdateAfterCallBack="True"
                CssClass="notification note-error" UpdateAfterCallBack="True" Visible="False"
                Width="100%"></anthem:Label>
            <div class="borde">
                <table id="Table8" class="content-box" width="100%">
                    <tr>
                        <td class="box-header clear" colspan="2">
                            <div class="fr">
                                <anthem:ImageButton ID="btnProgramasEjecucion" runat="server" AutoUpdateAfterCallBack="True"
                                    CausesValidation="False" ImageUrl="Imagenes/fancy_close.png" OnClick="btnProgramasEjecucion_Click" /></div>
                            <h2>
                                Recuperar Contrasena</h2>
                        </td>
                    </tr>
                    <tr>
                        <td class="instruccion" colspan="2">
                            Por favor ingrese su cuenta de correo.</td>
                    </tr>
                    <tr>
                        <td class="campo">
                            Correo electronico:
                            <asp:TextBox ID="txtCorreoElectronico" runat="server" CssClass="box" MaxLength="100"
                                ToolTip="Correo electronico" Width="189px"></asp:TextBox><asp:RequiredFieldValidator
                                    ID="reqCorreoElectronico" runat="server" ControlToValidate="txtCorreoElectronico"
                                    Display="Dynamic" Enabled="False" ValidationGroup="olvidoClave">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                        ID="regCorreoElectronico" runat="server" ControlToValidate="txtCorreoElectronico"
                                        Display="Dynamic" ErrorMessage="RegularExpressionValidator" ValidationGroup="olvidoClave">*</asp:RegularExpressionValidator>
                        </td>
                        <td>
                            <asp:ImageButton ID="btnIngresarCorreo" runat="server" ImageUrl="Imagenes/bt-ingresar.gif"
                                OnClick="btnIngresarCorreo_Click" ValidationGroup="olvidoClave" /></td>
                    </tr>
                </table>
            </div>
            <anthem:PlaceHolder ID="PlaceHolder1" runat="server">
            </anthem:PlaceHolder>
        </cc1:PopupPanel>
    </form>
</body>
</html>
